<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>创建对象</title>
	</head>

	<body>
		<script>
			var flower = new Object();
			flower.name = "长春花";
			alert(this.flower);
			flower.genera = "夹竹桃科";
			flower.area = "非洲、亚热带";
			flower.uses = "观赏或用药等";
			flower.showName = function() {
				//this指代的是flower对象；
				alert(this.name);
			}
			flower.showName();
		</script>
	</body>

</html>